<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<title></title>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="/Public/Admin/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="/Public/Admin/css/bootstrap-responsive.css" />
		<link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" />
		<!--数据分页样式--张建强-->
		<link rel="stylesheet" type="text/css" href="/Public/Admin/css/page.css" />
		
		<style type="text/css">
			body {
				padding-bottom: 40px;
			}
			
			.sidebar-nav {
				padding: 9px 0;
			}
			
			@media (max-width: 980px) {
				/* Enable use of floated navbar text */
				.navbar-text.pull-right {
					float: none;
					padding-left: 5px;
					padding-right: 5px;
				}
			}
		</style>
	</head>

	<body>
		<form class="form-inline definewidth m20" action="" method="post">
			产品名称：
			<input type="text" name="title" class="abc input-default" placeholder="产品名称">&nbsp;&nbsp;
			<button type="submit" class="btn btn-primary">查询</button>
		</form>
		<table class="table table-bordered table-hover definewidth m10">
			<thead>
				<tr>
					<th>新闻id</th>
					<th>新闻标题</th>
					<th>管理操作</th>
				</tr>
			</thead>
			<?php if(is_array($data)): foreach($data as $k=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["title"]); ?></td>
				<td>
					<a href="/index.php/Admin/Xw/save/id/<?php echo ($v["id"]); ?>">编辑</a>
					<a href="javascript:;" onclick="if(confirm('确定删除吗？'))location.href='/index.php/Admin/Xw/del/id/<?php echo ($v["id"]); ?>'">删除</a>
				</td>
			</tr><?php endforeach; endif; ?>
		</table>
		<div class="inline pull-right page">
			<div class="pagination"><?php echo ($page); ?></div>
		</div>
	</body>

</html>